sync.RWMutex.readerCount (field)
9 uses
sync (current package)
rwmutex.go#L41: readerCount atomic.Int32 // number of pending readers
rwmutex.go#L70: if rw.readerCount.Add(1) < 0 {
rwmutex.go#L91: c := rw.readerCount.Load()
rwmutex.go#L98: if rw.readerCount.CompareAndSwap(c, c+1) {
rwmutex.go#L118: if r := rw.readerCount.Add(-1); r < 0 {
rwmutex.go#L150: r := rw.readerCount.Add(-rwmutexMaxReaders) + rwmutexMaxReaders
rwmutex.go#L178: if !rw.readerCount.CompareAndSwap(0, -rwmutexMaxReaders) {
rwmutex.go#L207: r := rw.readerCount.Add(rwmutexMaxReaders)
rwmutex.go#L232: r := rw.readerCount.Load()
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |